package com.lq.user.feign;

import com.lq.user.entity.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "order-service")
public interface OrderFeignClient {

    @GetMapping("/orders/user/{userId}")
    UserInfo getUserInfo(@PathVariable("userId") Long userId);
}